package com.atguigu.common;

/**
 * ClassName: ResultCodeEnum
 * Package: com.atguigu.common
 * Description:
 *
 * @Author 蹇泽阳
 * @Create 2023/11/13 16:19
 * @Version 1.0
 */
import lombok.Getter;

/**
 * 统一返回结果状态信息类
 *
 */
@Getter
public enum ResultCodeEnum {
  
  SUCCESS(200,"成功"),
  FAIL(201, "失败"),
  SERVICE_ERROR(2012, "服务异常"),
  DATA_ERROR(204, "数据异常"),
  
  LOGIN_AUTH(208, "未登陆"),
  LOGIN_MOBLE_ERROR(208, "认证失败"),
  PERMISSION(209, "没有权限");
  private Integer code;
  
  private String message;
  
  private ResultCodeEnum(Integer code, String message) {
    this.code = code;
    this.message = message;
  }
}
